<link rel="stylesheet" type="text/css" href="./Public/Home/css/index.css"/>
<script type="text/javascript" src="./Public/Home/js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="./Public/Home/js/clock.js"></script>
<script type="text/javascript">
	$(function(){
		var timer = null;
		$("#rocket").click(function(){
			timer = setInterval(function(){
				var num = $(window).scrollTop();
				$(window).scrollTop(num-20);
				if(num==0){
					clearInterval(timer);
				}
			},30)
		})
	})
</script>
</head>
<body>
	<header id="header">
		<a href="" id="hgroup">
			<h1 id="logo">IT博客-爱生活,爱分享</h1>
			<i class="slogan" title="返回首页" style="width:6em">科技改变生活</i>
		</a>
		<?php
			$cateModel = new \Common\Model\Cate;
			$data = $cateModel->where("pid=0")->get();
		?>
		<ul>
			{{if value="'CONTROLLER' eq 'Index'"}}
			<li><a href="index.html" class="active">首页</a></li>
			{{else}}
			<li><a href="index.html">首页</a></li>
			{{endif}}
			{{foreach from="$data" value="$v"}}
			<li><a href="c_{{$v['cid']}}.html" {{if value="Q('get.cid') eq $v['cid']"}}class="active"{{endif}}>{{$v['cname']}}</a></li>
			{{endforeach}}
		</ul>	
	</header>